--LUA examples for nodemcu.
--Author: openthings@163.com. copyright&GPL V2.
--Last modified 2014-11-15.

lighton=0
tmr.alarm(1000,1,function()
	if lighton==0 then 
	  lighton=1 
	  led(50,50,50) 
	else 
	  lighton=0 
	  led(0,0,0) 
	end 
end)

